import request from '@/utils/request'

// 查询库存巡检记录列表
export function listCheckhistory(query) {
  return request({
    url: '/system/checkhistory/list',
    method: 'get',
    params: query
  })
}

// 查询库存巡检记录详细
export function getCheckhistory(id) {
  return request({
    url: '/system/checkhistory/' + id,
    method: 'get'
  })
}

// 新增库存巡检记录
export function addCheckhistory(data) {
  return request({
    url: '/system/checkhistory',
    method: 'post',
    data: data
  })
}

// 修改库存巡检记录
export function updateCheckhistory(data) {
  return request({
    url: '/system/checkhistory',
    method: 'put',
    data: data
  })
}

// 删除库存巡检记录
export function delCheckhistory(id) {
  return request({
    url: '/system/checkhistory/' + id,
    method: 'delete'
  })
}
